package com.letoken.platform.repo.admin.req.config;

import com.letoken.platform.pub.req.QueryReqBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author wyl
 * @date 2022/12/10
 */
@Data
@ApiModel(value = "修改铸币配置请求对象", description = "修改铸币配置请求对象")
public class UpdateIssueConfigReq {

    @NotNull(message = "编号不能为空")
    @ApiModelProperty(name = "id", value = "编号", required = true,example = "1")
    private Integer id;

    @NotNull(message = "最小发行量不能为空")
    @Min(value = 10,message = "最小发行量不能小于10")
    @ApiModelProperty(name="minIssueCount", value = "最小发行量")
    private Integer minIssueCount;

    @NotNull(message = "最大发行量不能为空")
    @Min(value = 10,message = "最大发行量不能小于10")
    @ApiModelProperty(name="maxIssueCount", value = "最大发行量")
    private Integer maxIssueCount;



}
